#ifndef __COUP_CC__
#define __COUP_CC__

#include <stdlib.h>
#include <math.h>
#include "coup.hh"

int Point::distance (const Point &p) const {
	return (abs(this->x - p.x) * abs(this->x - p.x)
		+ abs(this->y - p.y) * abs(this->y - p.y));
}

int Coup::longueur () const {
	return this->orig.distance(this->dest);
}

#endif
